﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2-5.aspx.cs" Inherits="Example.WebForm2_5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CheckBoxList示例</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        CheckBoxList示例<hr />
        <asp:CheckBoxList ID="chkHobby" runat="server" 
        RepeatColumns="3" RepeatDirection="Horizontal" >
            <asp:ListItem>看书</asp:ListItem>
            <asp:ListItem>打球</asp:ListItem>
            <asp:ListItem>旅游</asp:ListItem>
        </asp:CheckBoxList>
        <asp:Button ID="btnView" runat="server" onclick="btnView_Click" Text="显示" /><br /><br />
        <asp:Label ID="lblView" runat="server"></asp:Label>

    </div>
    </form>
</body>
</html>
